//---------------------------------------------------------------------
// Author: jachymko
//
// Description: Gets a file version.
//
// Creation Date: Dec 24, 2006
//---------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Management.Automation;

namespace Pscx.Commands
{
    [Cmdlet(VerbsCommon.Get, PscxNouns.FileVersion, DefaultParameterSetName = ParameterSetPath)]
    public class GetFileVersionCommand : Internal.PscxPathCommandBase
    {
        protected override void ProcessPath(string path)
        {
            WriteObject(FileVersionInfo.GetVersionInfo(path));
        }
    }
}
